package com.srs.model;


public class SystemParameterConfig {
	private Integer pSessionLoggingKeepInDays;
	private Integer pRxGoodThreshold;
	private Integer pRxQualityGoodThreshold;
	private Integer pNumberOfCalls;
	private Integer pNumberOfAgentsListed;
	private Integer pAgentNoActivityInDays;
	private Integer pAgentNoCallInDays;
	private Integer pAgentUsingWeakRxInSamples;
	private Integer pAgentUsingWeakRxInDays;
	private Integer pAgentUsingWeakRxQualityInSamples;
	private Integer pAgentUsingWeakRxQualityInDays;
	private Integer pCsrGoodThresholdInPercent;
	private Integer pServiceControlKeepInDays;

	public void setValue(String systemParameterName, Integer systemParameterValue) {
		if (systemParameterName.equals("P_SESSION_LOGGING_KEEP_IN_DAYS")) {
			this.setpSessionLoggingKeepInDays(systemParameterValue);
		} else if (systemParameterName.equals("P_RX_GOOD_THRESHOLD")) {
			this.setpRxGoodThreshold(systemParameterValue);
		} else if (systemParameterName.equals("P_RX_QUALITY_GOOD_THRESHOLD")) {
			this.setpRxQualityGoodThreshold(systemParameterValue);
		} else if (systemParameterName.equals("P_NUMBER_OF_CALLS")) {
			this.setpNumberOfCalls(systemParameterValue);
		} else if (systemParameterName.equals("P_NUMBER_OF_AGENTS_LISTED")) {
			this.setpNumberOfAgentsListed(systemParameterValue);
		} else if (systemParameterName.equals("P_AGENT_NO_ACTIVITY_IN_DAYS")) {
			this.setpAgentNoActivityInDays(systemParameterValue);
		} else if (systemParameterName.equals("P_AGENT_NO_CALL_IN_DAYS")) {
			this.setpAgentNoCallInDays(systemParameterValue);
		} else if (systemParameterName.equals("P_AGENT_USING_WEAK_RX_IN_SAMPLES")) {
			this.setpAgentUsingWeakRxInSamples(systemParameterValue);
		} else if (systemParameterName.equals("P_AGENT_USING_WEAK_RX_IN_DAYS")) {
			this.setpAgentUsingWeakRxInDays(systemParameterValue);
		} else if (systemParameterName.equals("P_AGENT_USING_WEAK_RX_QUALITY_IN_SAMPLES")) {
			this.setpAgentUsingWeakRxQualityInSamples(systemParameterValue);
		} else if (systemParameterName.equals("P_AGENT_USING_WEAK_RX_QUALITY_IN_DAYS")) {
			this.setpAgentUsingWeakRxQualityInDays(systemParameterValue);
		} else if (systemParameterName.equals("P_CSR_GOOD_THRESHOLD_IN_PERCENT")) {
			this.setpCsrGoodThresholdInPercent(systemParameterValue);
		} else if (systemParameterName.equals("P_SERVICE_CONTROL_KEEP_IN_DAYS")) {
			this.setpServiceControlKeepInDays(systemParameterValue);
		}
	}

	public void setValue(SystemParameter systemParameter) {
		if (systemParameter.getSystemParameterName().equals("P_SESSION_LOGGING_KEEP_IN_DAYS")) {
			this.setpSessionLoggingKeepInDays(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_RX_GOOD_THRESHOLD")) {
			this.setpRxGoodThreshold(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_RX_QUALITY_GOOD_THRESHOLD")) {
			this.setpRxQualityGoodThreshold(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_NUMBER_OF_CALLS")) {
			this.setpNumberOfCalls(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_NUMBER_OF_AGENTS_LISTED")) {
			this.setpNumberOfAgentsListed(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_AGENT_NO_ACTIVITY_IN_DAYS")) {
			this.setpAgentNoActivityInDays(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_AGENT_NO_CALL_IN_DAYS")) {
			this.setpAgentNoCallInDays(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_AGENT_USING_WEAK_RX_IN_SAMPLES")) {
			this.setpAgentUsingWeakRxInSamples(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_AGENT_USING_WEAK_RX_IN_DAYS")) {
			this.setpAgentUsingWeakRxInDays(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_AGENT_USING_WEAK_RX_QUALITY_IN_SAMPLES")) {
			this.setpAgentUsingWeakRxQualityInSamples(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_AGENT_USING_WEAK_RX_QUALITY_IN_DAYS")) {
			this.setpAgentUsingWeakRxQualityInDays(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_CSR_GOOD_THRESHOLD_IN_PERCENT")) {
			this.setpCsrGoodThresholdInPercent(systemParameter.getSystemParameterValueInteger());
		} else if (systemParameter.getSystemParameterName().equals("P_SERVICE_CONTROL_KEEP_IN_DAYS")) {
			this.setpServiceControlKeepInDays(systemParameter.getSystemParameterValueInteger());
		}
	}	
	
	/**
	 * @return the pSessionLoggingKeepInDays
	 */
	public Integer getpSessionLoggingKeepInDays() {
		return pSessionLoggingKeepInDays;
	}

	/**
	 * @param pSessionLoggingKeepInDays
	 *            the pSessionLoggingKeepInDays to set
	 */
	public void setpSessionLoggingKeepInDays(Integer pSessionLoggingKeepInDays) {
		this.pSessionLoggingKeepInDays = pSessionLoggingKeepInDays;
	}

	/**
	 * @return the pRxGoodThreshold
	 */
	public Integer getpRxGoodThreshold() {
		return pRxGoodThreshold;
	}

	/**
	 * @param pRxGoodThreshold
	 *            the pRxGoodThreshold to set
	 */
	public void setpRxGoodThreshold(Integer pRxGoodThreshold) {
		this.pRxGoodThreshold = pRxGoodThreshold;
	}

	/**
	 * @return the pRxQualityGoodThreshold
	 */
	public Integer getpRxQualityGoodThreshold() {
		return pRxQualityGoodThreshold;
	}

	/**
	 * @param pRxQualityGoodThreshold
	 *            the pRxQualityGoodThreshold to set
	 */
	public void setpRxQualityGoodThreshold(Integer pRxQualityGoodThreshold) {
		this.pRxQualityGoodThreshold = pRxQualityGoodThreshold;
	}

	/**
	 * @return the pNumberOfCalls
	 */
	public Integer getpNumberOfCalls() {
		return pNumberOfCalls;
	}

	/**
	 * @param pNumberOfCalls
	 *            the pNumberOfCalls to set
	 */
	public void setpNumberOfCalls(Integer pNumberOfCalls) {
		this.pNumberOfCalls = pNumberOfCalls;
	}

	/**
	 * @return the pNumberOfAgentsListed
	 */
	public Integer getpNumberOfAgentsListed() {
		return pNumberOfAgentsListed;
	}

	/**
	 * @param pNumberOfAgentsListed
	 *            the pNumberOfAgentsListed to set
	 */
	public void setpNumberOfAgentsListed(Integer pNumberOfAgentsListed) {
		this.pNumberOfAgentsListed = pNumberOfAgentsListed;
	}

	/**
	 * @return the pAgentNoActivityInDays
	 */
	public Integer getpAgentNoActivityInDays() {
		return pAgentNoActivityInDays;
	}

	/**
	 * @param pAgentNoActivityInDays
	 *            the pAgentNoActivityInDays to set
	 */
	public void setpAgentNoActivityInDays(Integer pAgentNoActivityInDays) {
		this.pAgentNoActivityInDays = pAgentNoActivityInDays;
	}

	/**
	 * @return the pAgentNoCallInDays
	 */
	public Integer getpAgentNoCallInDays() {
		return pAgentNoCallInDays;
	}

	/**
	 * @param pAgentNoCallInDays
	 *            the pAgentNoCallInDays to set
	 */
	public void setpAgentNoCallInDays(Integer pAgentNoCallInDays) {
		this.pAgentNoCallInDays = pAgentNoCallInDays;
	}

	/**
	 * @return the pAgentUsingWeakRxInSamples
	 */
	public Integer getpAgentUsingWeakRxInSamples() {
		return pAgentUsingWeakRxInSamples;
	}

	/**
	 * @param pAgentUsingWeakRxInSamples
	 *            the pAgentUsingWeakRxInSamples to set
	 */
	public void setpAgentUsingWeakRxInSamples(Integer pAgentUsingWeakRxInSamples) {
		this.pAgentUsingWeakRxInSamples = pAgentUsingWeakRxInSamples;
	}

	/**
	 * @return the pAgentUsingWeakRxInDays
	 */
	public Integer getpAgentUsingWeakRxInDays() {
		return pAgentUsingWeakRxInDays;
	}

	/**
	 * @param pAgentUsingWeakRxInDays
	 *            the pAgentUsingWeakRxInDays to set
	 */
	public void setpAgentUsingWeakRxInDays(Integer pAgentUsingWeakRxInDays) {
		this.pAgentUsingWeakRxInDays = pAgentUsingWeakRxInDays;
	}

	/**
	 * @return the pAgentUsingWeakRxQualityInSamples
	 */
	public Integer getpAgentUsingWeakRxQualityInSamples() {
		return pAgentUsingWeakRxQualityInSamples;
	}

	/**
	 * @param pAgentUsingWeakRxQualityInSamples
	 *            the pAgentUsingWeakRxQualityInSamples to set
	 */
	public void setpAgentUsingWeakRxQualityInSamples(
			Integer pAgentUsingWeakRxQualityInSamples) {
		this.pAgentUsingWeakRxQualityInSamples = pAgentUsingWeakRxQualityInSamples;
	}

	/**
	 * @return the pAgentUsingWeakRxQualityInDays
	 */
	public Integer getpAgentUsingWeakRxQualityInDays() {
		return pAgentUsingWeakRxQualityInDays;
	}

	/**
	 * @param pAgentUsingWeakRxQualityInDays
	 *            the pAgentUsingWeakRxQualityInDays to set
	 */
	public void setpAgentUsingWeakRxQualityInDays(
			Integer pAgentUsingWeakRxQualityInDays) {
		this.pAgentUsingWeakRxQualityInDays = pAgentUsingWeakRxQualityInDays;
	}

	/**
	 * @return the pCsrGoodThresholdInPercent
	 */
	public Integer getpCsrGoodThresholdInPercent() {
		return pCsrGoodThresholdInPercent;
	}

	/**
	 * @param pCsrGoodThresholdInPercent
	 *            the pCsrGoodThresholdInPercent to set
	 */
	public void setpCsrGoodThresholdInPercent(Integer pCsrGoodThresholdInPercent) {
		this.pCsrGoodThresholdInPercent = pCsrGoodThresholdInPercent;
	}

	/**
	 * @return the pServiceControlKeepInDays
	 */
	public Integer getpServiceControlKeepInDays() {
		return pServiceControlKeepInDays;
	}

	/**
	 * @param pServiceControlKeepInDays
	 *            the pServiceControlKeepInDays to set
	 */
	public void setpServiceControlKeepInDays(Integer pServiceControlKeepInDays) {
		this.pServiceControlKeepInDays = pServiceControlKeepInDays;
	}

}
